// 这是pinia的UI管理
import { defineStore } from 'pinia'
import { ref } from 'vue'

// ui 的store
export const useUIStore = defineStore('UI', () => {
  const isCollapsed = ref(false)
  const getAvatarUrl = (name) => {
    return new URL(`../assets/img/${name}.jpg`, import.meta.url).href;
  }
  return {
    isCollapsed
    , getAvatarUrl
  }
})

